<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta http-equiv="x-ua-compatible" content="ie=7" />
        <title>{$title}</title>
        <link href="{:C('WEB_URL')}Public/admin/style/base.css" rel="stylesheet" type="text/css" />
        <link href="{:C('WEB_URL')}Public/admin/style/master.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/base.js"></script>
        <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/My97/WdatePicker.js"></script>
    </head>
    <body>
        <div id="wrapper">
            <h2>{$title}卡券<a href="{:U('index', array('sp' =>$nowPage))   }">返回</a></h2>
            <form action="{:U('save') }" method="post" enctype="multipart/form-data" id="myform">
    
            
                <table class="form" >
                
                        
            <input type="hidden" name ='sp'  value=<?php echo $nowPage ?></input>
            
                     <tr>
                        <td class="tkey">卡券类型:</td>
                        <td>
			                <select name='floor' style="width:150px;">
			                
<!-- 			                卡券类型  1.普通卡券 2.次数限制的消费卡券 3周一至周五的 4周六至周日的 5.特殊时间段的 
 -->			                
							<option <?php if($data['c_type']=="1"){echo 'selected';} ?> value="1">普通卡券</option>
							<option <?php if($data['c_type']=="2"){echo 'selected';} ?> value="2">每日次数限制型</option>
							<option <?php if($data['c_type']=="3"){echo 'selected';} ?> value="3">周一至周五</option>
							<option <?php if($data['c_type']=="4"){echo 'selected';} ?> value="4">周六至周日</option>
							<option <?php if($data['c_type']=="5"){echo 'selected';} ?> value="5">特殊时间段</option>
					 </select>
						</td>
                    </tr>
                 
                  <tr>
                        <td class="tkey">类型名称:</td>
                        <td><input type="text" name="mark" value="{$data['mark']}" class="inputText" style='width:400px;' /></td>
                    </tr>
                    
                    
                    <tr>
                        <td class="tkey">每日消费次数:</td>
                        <td><input type="text" name="c_count" value="{$data['c_count']}" class="inputText" /></td>
                    </tr>
                   
                 
                  
					<tr>
                        <td class="tkey">起始时间:</td>
                        <td><input type="text" name="start_time"  value="<?php 
						           echo date('H:i:s', $data['start_time']); 
                               ?>" class="inputText" /></td>
                    </tr>
                  
                  
                   <tr>
                 
                   
                        <td class="tkey">结束时间:</td>
                        
                        <td>
                        <input type="text" name="end_time" 
                        value="<?php 
						           echo date('H:i:s', $data['end_time']); 
                               ?>"
                         class="inputText" />
                         
                         </td>
                    </tr>
                    
				
				  
                    
                  
                    <tr>
                        <td class="tkey">&nbsp;</td>
						

						<input type="hidden" name ='c_id' value="{$data['c_id']}">
						

                        <td><input type="submit" value="确定" class="btnOrange" /></td>
                    </tr>
                </table>
            </form>
        </div>
       
        <style>
            .picList li{float:left;margin:0 10px;}
            .picList li a{display:block;text-align:center;color:#f60}
        </style>
</body>
</html>